package com.kriss.crm.base;

import java.util.List;

import com.kriss.crm.util.PageBean;

public interface IBaseBiz {

	public <T> boolean save(T t) ;
	
	public <T> boolean saveOrUpdate(T t) ;

	public <T> boolean update(T t) ;

	public <T> boolean delete(T t) ;

	public <T> T get(Class<T> cls, java.io.Serializable ID) ;
	
	public <T> T  findOneByHql(String hql ,Object... values);

	public <T> List<T> findAll(String hql, Object... values) ;

	public <T> List<T> findAll(String hql, PageBean pb,Object... values) ;

	public Long count(String hql, Object... values) ;
}
